package cn.highset.modules.base.service;


import cn.highset.base.HighsetBaseService;
import cn.highset.modules.base.entity.UserMiniprogram;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

/**
 * 用户小程序信息接口
 *
 * @author Victor
 */
@CacheConfig(cacheNames = "user:miniprogram")
public interface UserMiniprogramService extends HighsetBaseService<UserMiniprogram, String> {

    /**
     * 通过用户id获取小程序用户信息
     *
     * @return
     */
    @Cacheable(key = "#userid")
    UserMiniprogram findByUserid(String userid);


}
